<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PlayerTop5Deaths.ascx.cs"
    Inherits="ASP_TF2LogParser.UserControls.PlayerTop5Deaths" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
    <Columns>
        <asp:TemplateField HeaderText="Match" SortExpression="PlayerName">
            <ItemTemplate>
                <asp:Label runat="server" Text='<%# GenerateUrl( Eval("PlayerName").ToString(), Eval("PlayerId").ToString() ) %>'
                    ID="PlayerNameLabel"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Deaths" HeaderText="Deaths" ReadOnly="True" SortExpression="Deaths" />
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPlayerTop5Deaths"
    TypeName="LogParser.DA.PlayerModel"></asp:ObjectDataSource>
